using System;
using System.Collections.Generic;
using System.Text;

namespace SMS.WinForms.Controls
{
    /// <summary>
    /// The <see cref="SMS.WinForms.Controls.WizardPageCollectionEventArgs"/> class contains information about a
    /// <see cref="SMS.WinForms.Controls.WizardPage"/> class as it is added and removed from the collection.
    /// </summary>
    public class WizardPageCollectionEventArgs : EventArgs
    {
        #region Declarations

        /// <summary>
        /// Stores the key of the item in the <see cref="SMS.WinForms.Controls.WizardPageCollection"/> class.
        /// </summary>
        private String _key;

        /// <summary>
        /// Stores the page instance that is contained in the <see cref="SMS.WinForms.Controls.WizardPageCollection"/> class.
        /// </summary>
        private WizardPage _page;

        #endregion

        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="SMS.WinForms.Controls.WizardPageCollectionEventArgs"/> class.
        /// </summary>
        /// <param name="key">The key.</param>
        /// <param name="page">The page.</param>
        public WizardPageCollectionEventArgs(String key, WizardPage page)
        {
            _key = key;
            _page = page;
        }

        #endregion

        #region Properties

        /// <summary>
        /// Gets the key.
        /// </summary>
        /// <value>The key.</value>
        public String Key
        {
            get { return _key; }
        }

        /// <summary>
        /// Gets the page.
        /// </summary>
        /// <value>The page.</value>
        public WizardPage Page
        {
            get { return _page; }
        }

        #endregion
    }
}
